package nkr1pt.popkorn.extract;

import com.google.inject.Provider;
import com.google.inject.Singleton;
import java.util.HashMap;
import java.util.Map;
import nkr1pt.popkorn.extract.ExtractCommand;
import nkr1pt.popkorn.extract.ExtractCommand;
import nkr1pt.popkorn.extract.ExtractCommand;
import nkr1pt.popkorn.extract.ExtractCommandsMap;
import nkr1pt.popkorn.extract.ExtractCommandsMap;
import nkr1pt.popkorn.extract.ExtractCommandsMap;
import nkr1pt.popkorn.extract.LinuxUnrarCommand;
import nkr1pt.popkorn.extract.LinuxUnrarCommand;
import nkr1pt.popkorn.extract.LinuxUnrarCommand;

/**
 *
 * @author Kristof Vanhaeren
 */
public class ExtractCommandsProvider implements Provider<ExtractCommandsMap> {

    public ExtractCommandsMap get() {
        ExtractCommandsMap extractCommandsMap = new ExtractCommandsMap();

        Map<String, ExtractCommand[]> extractCommands = new HashMap<String, ExtractCommand[]>();
        extractCommands.put("linux", new ExtractCommand[]{new LinuxUnrarCommand()});
        extractCommands.put("windows", new ExtractCommand[]{});
        extractCommands.put("mac osx", new ExtractCommand[]{});
        extractCommandsMap.setExtractCommands(extractCommands);

        return extractCommandsMap;
    }

}